package com.zzs.client.service;

import com.zzs.client.pojo.bo.user.UpdateInfoBO;
import com.zzs.client.pojo.vo.user.UserDetailVO;
import com.zzs.common.minio.entity.File;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author zzs
 * @date 2025/03/26
 */
public interface UserInfoService {
    UserDetailVO getUserDetail(long userId);

    File updateUserAvatar(MultipartFile file);

    void updateUserInfo(UpdateInfoBO updateInfoBO);

    void sendCodeToOldPhone(String phone);

    void verifyOldPhone(String phone, String code);

    void sendCodeToNewPhone(String phone);

    void verifyNewPhone(String phone, String code);

    void sendCodeToUpdatePassword(String phone);

    void updatePassword(String phone, String code, String password, String passwordRepeat);
}
